package com.ap.generator.registermerchant;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.datagen.lang.StringRandomGeneratorBuilder.stringRandomGeneratorBuilder;

import com.ap.core.cxf.jaxb.managemerchant.AbstractRequestMerchantRegistrationTypeGeneratorBuilder;
import com.ap.generator.common.FieldGenerator;

public class RequestManageMerchantGeneratorBuilder extends AbstractRequestMerchantRegistrationTypeGeneratorBuilder {

	@Override
	public void setupDefaults() {
		this.msgHdrGenerator = FieldGenerator.ADDMERCHANTMSGHDRGENERATOR;
		this.distributorIdGenerator = nullable(stringRandomGeneratorBuilder().alphabeticUppper().length(6).build());
		this.merchantGenerator = nullable(buildA(MerchantInfoTypeGeneratorBuilder.getMerchantInfoTypeGenerator()));
		
	}
	
	public static RequestManageMerchantGeneratorBuilder getRequestManageMerchantGeneratorBuilder(){
		return new RequestManageMerchantGeneratorBuilder();
	}
	
}
